function print(msg) {
	document.write(msg, "<br>");
}

function distance(x1, x2, y1, y2) {
	var dx = x2 - x1;
	var dy = y2 - y1;
	
	return Math.sqrt(dx * dx, dy * dy);
}

function factorial(x) {
	if(x <= 1) 
		return 1;
	
	return x * factorial(x - 1);
}

function hypotenuse(a, b) {
	
	function square(x) {
		return x * x;
	}
	
	return Math.sqrt(square(a) + square(b));
}

var f = new Function("x", "y", "return x * y;");

var f = function(x) {return x * x;};

var f = function fact(x) {if(x <= 1) return 1; else return x * fact(x - 1);};

a[0] = function(x) {return x * x;};
a.sort(function(a, b) {return a - b;});
var tensquared = (function(x) {return x * x;})(10);